import request from "@/utils/request";

//获取我发起的审批流程
export function getMyCreated(params){
    return request({
        url:`/flow/page/created`,
        method:'POST',
        data:params
    })
}
//获取我处理的审批流程
export function getMyApproval(params){
    return request({
        url:`/flow/page/approval`,
        method:'POST',
        data:params
    })
}
//获取获取业务类型MAP
export function getCheckplanMap(){
    return request({
        url:`/warehouse/checkplan/map`,
        method:'GET',
    })
}
//获取流程状态类型MAP
export function getStateMap(){
    return request({
        url:`/approvl/map`,
        method:'GET',
    })
}
//获取流程状态类型MAP
export function approvalSubmit(data){
    return request({
        url:`/approvl/done`,
        method:'POST',
        data:data
    })
}
